package jrain.utils.exception;

/**
 * <pre>
 * 作者：3244924214@qq.com 
 * 描述：业务异常
 * </pre>
 */
public class BusinessException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	private int code = 2;

	public BusinessException() {
		super();
	}

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(int code, String message) {
		super(message);
		this.code = code;
	}

	public BusinessException(String message, Throwable cause) {
		super(message, cause);
	}

	public BusinessException(int code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}

	public int getCode() {
		return code;
	}
}
